package com.king.pattem.guardedsuspension;

/**
 * @author taomk
 * @version 1.0
 * @since 15-2-3 下午9:53
 */
public class Main {

	public static void main(String [] args) {
		RequestQueue requestQueue = new RequestQueue();
		for(int i = 0; i < 10; i++) {
			new ServerThread(requestQueue, "ServerThread" + i).start();
		}

		for(int i = 0; i < 10; i++) {
			new ClientThread(requestQueue, "ClientThread" + i).start();
		}
	}
}
